]> dgit.raspbian.org Git - linux-4.9.git/commit
panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.
authorEric Anholt <eric@anholt.net>
Thu, 13 Apr 2017 00:52:56 +0000 (17:52 -0700)
committerpopcornmix <popcornmix@gmail.com>
Wed, 19 Apr 2017 12:03:48 +0000 (13:03 +0100)
commitf0e4e8672dd416c94279dfcdc220b2a824ccfd95
treec7f93f0e0343b771f98736b4af8c4057f431eefe
parentb61973e3ca958a67a238b2e32dcbf9c99e57bb93
panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.

If the i2c driver hadn't pobed before the panel driver probes, then
the client would be NULL but we were looking for an ERR_PTR in the
error case.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c